package com.suning.sawp.dto.common;

import java.util.List;

/**
 * 
 * 分页返回数据<br> 
 * 〈功能详细描述〉
 *
 * @author 12061818
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
public class QueryResult<T> {
    
    private int totalSize;
    
    private List<T> records;

    public QueryResult () {
        
    }
    
    public QueryResult (int totalSize, List<T> records) {
        this.records = records;
        this.totalSize = totalSize;
    }
    
    public int getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(int totalSize) {
        this.totalSize = totalSize;
    }

    public List<T> getRecords() {
        return records;
    }

    public void setRecords(List<T> records) {
        this.records = records;
    }

}
